//package com.coalmine.activiti.common.datafilter.interceptor;
//
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.annotation.Resource;
///**
// * @Author Silencer
// * @Copyright coalmine
// * @CreateTime 2022/7/5
// */
//
//@Configuration
//public class RedissonConfig {
//
//    @Resource
//    private RedisProperties redisProperties;
//
//    @Bean
//    public RedissonClient redissonClient() {
//        Config config = new Config();
//        String redisUrl = String.format("redis://%s:%s", redisProperties.getHost() + "", redisProperties.getPort() + "");
//        config.useSingleServer().setAddress(redisUrl).setPassword(redisProperties.getPassword());
//        return Redisson.create(config);
//    }
//}
